package com.qingcheng.pojo.seckill;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by yuanxin
 * Date:2019/7/22
 * Time:14:56
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_seckill_goods")
public class SeckillGood implements Serializable {
    @Id
    private Long id;
    private Long goodsId;//spu Id
    private Long itemId;//sku Id
    private String title;//标题
    private String smallPic;//商品图片
    private Integer price;//原价格
    private Integer costPrice;//秒杀价格
    private String sellerId;//商家ID
    private Date createTime;//添加日期
    private Date checkTime;//审核日期
    private String status;//审核状态，0未审核，1审核通过，2审核不通过
    private Date startTime;//开始时间
    private Date endTime;//结束时间
    private Integer num;//秒杀商品数
    private Integer stockCount;//'剩余库存数
    private String introduction;//描述

}
